<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>淘宝轮播图</title>
    <link rel="stylesheet" href="../css/reset.css" />
    <style>
      .container {
        position: relative;
        width: 514px;
        height: 315px;
        background-color: pink;
        margin: 100px auto;
        background: url(../img/lunbo.png) center/514px 315px no-repeat;
      }

      .container ul {
        position: absolute;
        bottom: 10px;
        left: 50%;
        margin-left: -50px;
        border-radius: 50px;
        background-color: rgba(255, 255, 255, 0.5);
      }
      .container ul li {
        float: left;
        padding: 3px 5px;
      }

      .container ul li a {
        display: block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #fff;
      }

      .container ul li a.active {
        background-color: #ff5000;
      }

      .container .direct {
        position: absolute;
        top: 50%;
        margin-top: -15px;
        width: 30px;
        height: 30px;
        color: #fff;
        line-height: 30px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
      }
      .container .direct:hover {
        cursor: pointer;
      }

      .container .prev {
        border-top-right-radius: 50%;
        border-bottom-right-radius: 50%;
      }

      .container .next {
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        right: 0;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="direct prev">&lt;</div>
      <div class="direct next">&gt;</div>
      <ul>
        <li><a href="#" class="active"></a></li>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
      </ul>
    </div>
  </body>
</html>
